package com.example.demo.entity;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.micrometer.common.lang.NonNull;

/*
 * 下载信息
 * 文档： https://solution.wps.cn/docs/callback/preview.html #文档预览
 */
public class DownloadInfo {
    @NonNull
    @JsonProperty("url")
    private String url;

    @JsonProperty("digest_type")
    private String digestType;

    @JsonProperty("digest")
    private String digest;

    @JsonProperty(value = "headers")
    private Map<String, String> headers;

    public void setUrl(String url) {
        this.url = url;
    }

    public void setDigestType(String digestType) {
        this.digestType = digestType;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }
}
